Optimizing Legibility